function t(t, n, e) {
    return n in t ? Object.defineProperty(t, n, {
        value: e,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[n] = e, t;
}

var n = getApp().http.host_listPost;
var util = getApp().util
Page({
    data: {
        hostList: null
    },
    onLoad: function(t) {
        wx.hideShareMenu();//禁止分享
    },
    onReady: function() {},
    onShow: function() {
        this.hostList();
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    hostList: function() {
        var t = this, e = wx.getStorageSync("userinfo").token, o = wx.getStorageSync("hall_info").id;
        n({
            token: e,
            hall_id: o
        }).then(function(n) {
            0 == n.code ? t.setData({
                hostList: n.data
            }) : console.log("接口返回数据失败", n);
        });
    },
    setuid: function(n) {
        var e, o = n.detail.nickname, a = n.detail.uid, i = getCurrentPages(), c = i[i.length - 2], s = c.data.newdata_index, u = "newdata[" + s + "].zhuchi", d = "newdata[" + s + "].nickname";
        c.setData((e = {}, t(e, u, a), t(e, d, o), e)), wx.navigateBack({
            delta: 1
        });
    }
});